package com.hutu.erp.catalog.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品属性对象 catalog_product_attribute
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class ProductAttribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品属性id */
    private Long productAttributeId;

    /** 商品属性名称 */
    @Excel(name = "商品属性名称")
    private String productAttributeName;

    /** 商品属性简称 */
    @Excel(name = "商品属性简称")
    private String alternativeName;

    /** 商品属性查询码 */
    @Excel(name = "商品属性查询码")
    private String lookup;

    /** 商品属性编码 */
    @Excel(name = "商品属性编码")
    private String productAttributeCode;

    /** 商品属性描述 */
    @Excel(name = "商品属性描述")
    private String description;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private Integer deleted;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long displayOrder;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setProductAttributeId(Long productAttributeId) 
    {
        this.productAttributeId = productAttributeId;
    }

    public Long getProductAttributeId() 
    {
        return productAttributeId;
    }
    public void setProductAttributeName(String productAttributeName) 
    {
        this.productAttributeName = productAttributeName;
    }

    public String getProductAttributeName() 
    {
        return productAttributeName;
    }
    public void setAlternativeName(String alternativeName) 
    {
        this.alternativeName = alternativeName;
    }

    public String getAlternativeName() 
    {
        return alternativeName;
    }
    public void setLookup(String lookup) 
    {
        this.lookup = lookup;
    }

    public String getLookup() 
    {
        return lookup;
    }
    public void setProductAttributeCode(String productAttributeCode) 
    {
        this.productAttributeCode = productAttributeCode;
    }

    public String getProductAttributeCode() 
    {
        return productAttributeCode;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setDisplayOrder(Long displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder() 
    {
        return displayOrder;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productAttributeId", getProductAttributeId())
            .append("productAttributeName", getProductAttributeName())
            .append("alternativeName", getAlternativeName())
            .append("lookup", getLookup())
            .append("productAttributeCode", getProductAttributeCode())
            .append("description", getDescription())
            .append("deleted", getDeleted())
            .append("displayOrder", getDisplayOrder())
            .append("createdBy", getCreatedBy())
            .append("createdAt", getCreatedAt())
            .append("updatedBy", getUpdatedBy())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
